<div class="layui-card">
    <div class="layui-card-body ">
        <form action=""  class="layui-form">
            <div class="layui-form-item">
                <div class="layui-input-inline">
                    <input type="text" name="keywords" value="{$search.keywords|default=''}" class="layui-input" placeholder="应用名称名称">
                </div>
                <div class="layui-input-inline">
                    <button class="layui-btn" lay-submit lay-filter="formDemo">搜索</button>
                    {if isset($search.keywords)}
                    <a href="javascript:history.go(-1);" class="layui-btn">返回</a>
                    {/if}
                </div>
            </div>
        </form>

        <table class="layui-table">
            <thead>
            <tr>
                <th width="300">应用名称</th>
                <th width="120">标识</th>
                <th width="120">是否卸载</th>
                <th width="120">是否访问</th>
                <th width="120">是否操作</th>
            </tr>
            </thead>
            <tbody>
            {volist name="appList" id='v'}
            <tr>
                <td>{$v.title}</td>
                <td>{$v.name}</td>
                <td align="center" valign="middle">
                    {switch name="$v.uninstall"}
                    {case value="0"}
                    <span class="layui-badge layui-bg-green">禁止卸载</span>
                    {/case}
                    {default/}
                    <span class="layui-badge">可卸载</span>
                    {/switch}
                </td>
                <td align="center" valign="middle">
                    {switch name="$v.status"}
                    {case value="1"}
                    <span class="layui-badge layui-bg-green">是</span>
                    {/case}
                    {default/}
                    <span class="layui-badge">否</span>
                    {/switch}
                </td>
                <td align="center" valign="middle">
                    {switch name="$v.is_action"}
                    {case value="0"}
                    <span class="layui-badge">禁止操作</span>
                    {/case}
                    {default/}
                    <a href="{:url('admin/steward.apps/editapp',['id'=>$v['name']])}" class="layui-btn layui-btn-xs">编辑</a>
                    {/switch}
                </td>
            </tr>
            {/volist}
            </tbody>
        </table>
    </div>
</div>